package com.ruoyi.project.system.file.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 文件对象 file
 * 
 * @author ruoyi
 * @date 2022-02-18
 */
public class File extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 设备编号 */
    @Excel(name = "设备编号")
    private Long equipmentId;

    /** 用户名称 */
    @Excel(name = "用户名称")
    private String userName;

    /** 文件地址 */
    @Excel(name = "文件地址")
    private String fileAddress;

    /** 文件名称 */
    @Excel(name = "文件名称")
    private String fileName;

    @Excel(name = "文件实际下载路径")
    private String fileUrl;



    public void setFileUrl(String fileUrl){
        this.fileUrl=fileUrl;
    }

    public String getFileUrl(){
        return fileUrl;
    }



    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setEquipmentId(Long equipmentId)
    {
        this.equipmentId = equipmentId;
    }

    public Long getEquipmentId()
    {
        return equipmentId;
    }
    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }
    public void setFileAddress(String fileAddress)
    {
        this.fileAddress = fileAddress;
    }

    public String getFileAddress()
    {
        return fileAddress;
    }
    public void setFileName(String fileName)
    {
        this.fileName = fileName;
    }

    public String getFileName()
    {
        return fileName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("equipmentId", getEquipmentId())
            .append("userName", getUserName())
            .append("fileAddress", getFileAddress())
            .append("fileName", getFileName())
                .append("fileUrl",getFileUrl())
            .toString();
    }
}
